Skip to content

Consume user activation when requesting PiP#246

Merged
beaufortfrancois merged 1 commit into
mainfrom
consume-user-activation
Feb 26, 2026
Merged

Consume user activation when requesting PiP#246
beaufortfrancois merged 1 commit into
mainfrom
consume-user-activation

Conversation

@beaufortfrancois

@beaufortfrancois beaufortfrancois commented Feb 23, 2026

Copy link
Copy Markdown
Collaborator

Raised in #245 (comment), this PR adds missing "Consume user activation when requesting PiP" as tested in Web Platform Tests.

@theIDinside @marcoscaceres


Preview | Diff

@theIDinside

Copy link
Copy Markdown
Contributor

Looks good to me!

@marcoscaceres marcoscaceres left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but, as a follow up, we should do an editorial cleanup of this later to pass in the promise instead of throwing - and reject the promise in place.

Also, just nits... but should be [=exception/throw=] a {{NotAllowedError}} {{DOMException}}. See examples:
https://webidl.spec.whatwg.org/#example-exception-creation-and-throwing

We can clean all that up later tho. No biggy.

@beaufortfrancois beaufortfrancois merged commit 2983289 into main Feb 26, 2026
2 checks passed
@beaufortfrancois

Copy link
Copy Markdown
Collaborator Author

Since this change will be reflected in #245, I'll go ahead and merge this PR. We'll do the editorial cleanup in @theIDinside's PR.

github-actions Bot added a commit that referenced this pull request Feb 26, 2026
SHA: 2983289
Reason: push, by beaufortfrancois

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
theIDinside added a commit to theIDinside/picture-in-picture that referenced this pull request Mar 3, 2026
Tried to also do the editorial changes raised in the comment thread
theIDinside added a commit to theIDinside/picture-in-picture that referenced this pull request Mar 3, 2026
Tried to also do the editorial changes raised in the comment thread
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants